// @ts-ignore
import service from ".";
//轮播图接口
export function getBanner(){
    return service({
        url:"/banner?type=2",
        method:"get",
    })
}
export function getMusic(){
    return service({
        url:"/top/playlist?limit=10",
        method:"get",
    })
}
// ES6引入反引号（`）来表示模板字符串
//获取歌单详情
export function getItemMusic(data){
    return service({
        method:"get",
        url:`/playlist/detail?id=${data}`,
    })
}
//获取歌单所有歌曲
export function getItemMusicList(data){
    return service({
        method:"get",
        url:`/playlist/track/all?id=${data}&limit=20&offset=1`,
    })
}
//获取歌词
export function getMusicLyric(data){
    return service({
        method:"get",
        url:`/lyric?id=${data}`,
    })
}
//搜索歌曲
export function getSearchMusic(data){
    return service({
        method:"post",
        url:`/cloudsearch?keywords=${data}`,
    })
}